/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package converter.core.db.entity;

import java.io.Serializable;
import java.math.BigInteger;
import java.util.Date;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 *
 * @author Snark
 */
@Entity
@Table(name = "WC_DISCIPLINE")
@NamedQueries({
    @NamedQuery(name = "WcDiscipline.findAll", query = "SELECT w FROM WcDiscipline w"),
    @NamedQuery(name = "WcDiscipline.findBySysFldorder", query = "SELECT w FROM WcDiscipline w WHERE w.sysFldorder = :sysFldorder"),
    @NamedQuery(name = "WcDiscipline.findBySysGuid", query = "SELECT w FROM WcDiscipline w WHERE w.sysGuid = :sysGuid"),
    @NamedQuery(name = "WcDiscipline.findBySysState", query = "SELECT w FROM WcDiscipline w WHERE w.sysState = :sysState"),
    @NamedQuery(name = "WcDiscipline.findBySysRev", query = "SELECT w FROM WcDiscipline w WHERE w.sysRev = :sysRev"),
    @NamedQuery(name = "WcDiscipline.findBySysCreated", query = "SELECT w FROM WcDiscipline w WHERE w.sysCreated = :sysCreated"),
    @NamedQuery(name = "WcDiscipline.findBySysUpdated", query = "SELECT w FROM WcDiscipline w WHERE w.sysUpdated = :sysUpdated"),
    @NamedQuery(name = "WcDiscipline.findBySysCreator", query = "SELECT w FROM WcDiscipline w WHERE w.sysCreator = :sysCreator"),
    @NamedQuery(name = "WcDiscipline.findBySysUser", query = "SELECT w FROM WcDiscipline w WHERE w.sysUser = :sysUser"),
    @NamedQuery(name = "WcDiscipline.findBySysGuidfk", query = "SELECT w FROM WcDiscipline w WHERE w.sysGuidfk = :sysGuidfk"),
    @NamedQuery(name = "WcDiscipline.findBySysParentguid", query = "SELECT w FROM WcDiscipline w WHERE w.sysParentguid = :sysParentguid"),
    @NamedQuery(name = "WcDiscipline.findByName", query = "SELECT w FROM WcDiscipline w WHERE w.name = :name"),
    @NamedQuery(name = "WcDiscipline.findByLecture", query = "SELECT w FROM WcDiscipline w WHERE w.lecture = :lecture"),
    @NamedQuery(name = "WcDiscipline.findByLaboratory", query = "SELECT w FROM WcDiscipline w WHERE w.laboratory = :laboratory"),
    @NamedQuery(name = "WcDiscipline.findByPractical", query = "SELECT w FROM WcDiscipline w WHERE w.practical = :practical"),
    @NamedQuery(name = "WcDiscipline.findByOffset", query = "SELECT w FROM WcDiscipline w WHERE w.offset = :offset"),
    @NamedQuery(name = "WcDiscipline.findByExamination", query = "SELECT w FROM WcDiscipline w WHERE w.examination = :examination"),
    @NamedQuery(name = "WcDiscipline.findByConsultation", query = "SELECT w FROM WcDiscipline w WHERE w.consultation = :consultation"),
    @NamedQuery(name = "WcDiscipline.findByTest", query = "SELECT w FROM WcDiscipline w WHERE w.test = :test"),
    @NamedQuery(name = "WcDiscipline.findByCoursework", query = "SELECT w FROM WcDiscipline w WHERE w.coursework = :coursework"),
    @NamedQuery(name = "WcDiscipline.findBySubgroup", query = "SELECT w FROM WcDiscipline w WHERE w.subgroup = :subgroup"),
    @NamedQuery(name = "WcDiscipline.findByControlsw", query = "SELECT w FROM WcDiscipline w WHERE w.controlsw = :controlsw"),
    @NamedQuery(name = "WcDiscipline.findByStudentswork", query = "SELECT w FROM WcDiscipline w WHERE w.studentswork = :studentswork"),
    @NamedQuery(name = "WcDiscipline.findByIlaboratory", query = "SELECT w FROM WcDiscipline w WHERE w.ilaboratory = :ilaboratory"),
    @NamedQuery(name = "WcDiscipline.findByIlecture", query = "SELECT w FROM WcDiscipline w WHERE w.ilecture = :ilecture"),
    @NamedQuery(name = "WcDiscipline.findByIpractical", query = "SELECT w FROM WcDiscipline w WHERE w.ipractical = :ipractical"),
    @NamedQuery(name = "WcDiscipline.findByOffseto", query = "SELECT w FROM WcDiscipline w WHERE w.offseto = :offseto"),
    @NamedQuery(name = "WcDiscipline.findByCourseproj", query = "SELECT w FROM WcDiscipline w WHERE w.courseproj = :courseproj"),
    @NamedQuery(name = "WcDiscipline.findByRef", query = "SELECT w FROM WcDiscipline w WHERE w.ref = :ref"),
    @NamedQuery(name = "WcDiscipline.findByEsse", query = "SELECT w FROM WcDiscipline w WHERE w.esse = :esse"),
    @NamedQuery(name = "WcDiscipline.findByRgr", query = "SELECT w FROM WcDiscipline w WHERE w.rgr = :rgr")})
public class WcDiscipline implements Serializable {
    private static final long serialVersionUID = 1L;
    @Column(name = "SYS_FLDORDER")
    private Integer sysFldorder;
    @Id
    @Basic(optional = false)
    @Column(name = "SYS_GUID")
    private String sysGuid;
    @Column(name = "SYS_STATE")
    private Integer sysState;
    @Column(name = "SYS_REV")
    private BigInteger sysRev;
    @Column(name = "SYS_CREATED")
    @Temporal(TemporalType.TIMESTAMP)
    private Date sysCreated;
    @Column(name = "SYS_UPDATED")
    @Temporal(TemporalType.TIMESTAMP)
    private Date sysUpdated;
    @Column(name = "SYS_CREATOR")
    private String sysCreator;
    @Column(name = "SYS_USER")
    private String sysUser;
    @Column(name = "SYS_GUIDFK")
    private String sysGuidfk;
    @Column(name = "SYS_PARENTGUID")
    private String sysParentguid;
    @Column(name = "NAME")
    private String name;
    @Column(name = "LECTURE")
    private Integer lecture;
    @Column(name = "LABORATORY")
    private Integer laboratory;
    @Column(name = "PRACTICAL")
    private Integer practical;
    @Column(name = "OFFSET")
    private Integer offset;
    @Column(name = "EXAMINATION")
    private Integer examination;
    @Column(name = "CONSULTATION")
    private Integer consultation;
    @Column(name = "TEST")
    private Integer test;
    @Column(name = "COURSEWORK")
    private Integer coursework;
    @Column(name = "SUBGROUP")
    private String subgroup;
    @Column(name = "CONTROLSW")
    private Integer controlsw;
    @Column(name = "STUDENTSWORK")
    private Integer studentswork;
    @Column(name = "ILABORATORY")
    private Integer ilaboratory;
    @Column(name = "ILECTURE")
    private Integer ilecture;
    @Column(name = "IPRACTICAL")
    private Integer ipractical;
    @Column(name = "OFFSETO")
    private Integer offseto;
    @Column(name = "COURSEPROJ")
    private Integer courseproj;
    @Column(name = "REF")
    private Integer ref;
    @Column(name = "ESSE")
    private Integer esse;
    @Column(name = "RGR")
    private Integer rgr;

    public WcDiscipline() {
    }

    public WcDiscipline(String sysGuid) {
        this.sysGuid = sysGuid;
    }

    public Integer getSysFldorder() {
        return sysFldorder;
    }

    public void setSysFldorder(Integer sysFldorder) {
        this.sysFldorder = sysFldorder;
    }

    public String getSysGuid() {
        return sysGuid;
    }

    public void setSysGuid(String sysGuid) {
        this.sysGuid = sysGuid;
    }

    public Integer getSysState() {
        return sysState;
    }

    public void setSysState(Integer sysState) {
        this.sysState = sysState;
    }

    public BigInteger getSysRev() {
        return sysRev;
    }

    public void setSysRev(BigInteger sysRev) {
        this.sysRev = sysRev;
    }

    public Date getSysCreated() {
        return sysCreated;
    }

    public void setSysCreated(Date sysCreated) {
        this.sysCreated = sysCreated;
    }

    public Date getSysUpdated() {
        return sysUpdated;
    }

    public void setSysUpdated(Date sysUpdated) {
        this.sysUpdated = sysUpdated;
    }

    public String getSysCreator() {
        return sysCreator;
    }

    public void setSysCreator(String sysCreator) {
        this.sysCreator = sysCreator;
    }

    public String getSysUser() {
        return sysUser;
    }

    public void setSysUser(String sysUser) {
        this.sysUser = sysUser;
    }

    public String getSysGuidfk() {
        return sysGuidfk;
    }

    public void setSysGuidfk(String sysGuidfk) {
        this.sysGuidfk = sysGuidfk;
    }

    public String getSysParentguid() {
        return sysParentguid;
    }

    public void setSysParentguid(String sysParentguid) {
        this.sysParentguid = sysParentguid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getLecture() {
        return lecture;
    }

    public void setLecture(Integer lecture) {
        this.lecture = lecture;
    }

    public Integer getLaboratory() {
        return laboratory;
    }

    public void setLaboratory(Integer laboratory) {
        this.laboratory = laboratory;
    }

    public Integer getPractical() {
        return practical;
    }

    public void setPractical(Integer practical) {
        this.practical = practical;
    }

    public Integer getOffset() {
        return offset;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getExamination() {
        return examination;
    }

    public void setExamination(Integer examination) {
        this.examination = examination;
    }

    public Integer getConsultation() {
        return consultation;
    }

    public void setConsultation(Integer consultation) {
        this.consultation = consultation;
    }

    public Integer getTest() {
        return test;
    }

    public void setTest(Integer test) {
        this.test = test;
    }

    public Integer getCoursework() {
        return coursework;
    }

    public void setCoursework(Integer coursework) {
        this.coursework = coursework;
    }

    public String getSubgroup() {
        return subgroup;
    }

    public void setSubgroup(String subgroup) {
        this.subgroup = subgroup;
    }

    public Integer getControlsw() {
        return controlsw;
    }

    public void setControlsw(Integer controlsw) {
        this.controlsw = controlsw;
    }

    public Integer getStudentswork() {
        return studentswork;
    }

    public void setStudentswork(Integer studentswork) {
        this.studentswork = studentswork;
    }

    public Integer getIlaboratory() {
        return ilaboratory;
    }

    public void setIlaboratory(Integer ilaboratory) {
        this.ilaboratory = ilaboratory;
    }

    public Integer getIlecture() {
        return ilecture;
    }

    public void setIlecture(Integer ilecture) {
        this.ilecture = ilecture;
    }

    public Integer getIpractical() {
        return ipractical;
    }

    public void setIpractical(Integer ipractical) {
        this.ipractical = ipractical;
    }

    public Integer getOffseto() {
        return offseto;
    }

    public void setOffseto(Integer offseto) {
        this.offseto = offseto;
    }

    public Integer getCourseproj() {
        return courseproj;
    }

    public void setCourseproj(Integer courseproj) {
        this.courseproj = courseproj;
    }

    public Integer getRef() {
        return ref;
    }

    public void setRef(Integer ref) {
        this.ref = ref;
    }

    public Integer getEsse() {
        return esse;
    }

    public void setEsse(Integer esse) {
        this.esse = esse;
    }

    public Integer getRgr() {
        return rgr;
    }

    public void setRgr(Integer rgr) {
        this.rgr = rgr;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (sysGuid != null ? sysGuid.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof WcDiscipline)) {
            return false;
        }
        WcDiscipline other = (WcDiscipline) object;
        if ((this.sysGuid == null && other.sysGuid != null) || (this.sysGuid != null && !this.sysGuid.equals(other.sysGuid))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "javaapplication1.entity.WcDiscipline[ sysGuid=" + sysGuid + " ]";
    }
    
}
